package com.liveMobile.Screen.utils;

import android.content.Context;
import android.media.MediaScannerConnection;
import android.os.Environment;

import java.io.File;

public class PathUtils {
    public static File getRecordPath() {
        File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);
        return new File(storageDir.getAbsolutePath() + "/RootEncoder");
    }

    public static void updateGallery(Context context, String path) {
        MediaScannerConnection.scanFile(context, new String[]{path}, null, null);
        new ToastUtils(context, "Video saved at: " + path,3);
    }
}
